import { defineStore } from "pinia";
import { getActionsDataList } from "@/api/table";

export const useTableStore = defineStore('table', {
    state() {
        return {
            tableData: [],
        }
    },
    actions: {
        async getData() {
            try {
                const userData: any = await getActionsDataList();
                this.tableData = userData.data;
            } catch (error) {
                console.log(error);
            }
        }
    }
})